package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.advertisement.AdvertisementUserData;
import com.yanqu.road.entity.activity.advertisement.config.AdvertisementSystemConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class AdvertisementActivityBusiness {
    public static Map<Integer, AdvertisementSystemConfig> getAdvertisementConfigMap(int activityId) {
        return DaoHelper.getAdvertisementActivityConfigImpl().getAdvertisementConfigMap(activityId);
    }

    public static AdvertisementUserData getAdvertisementUserData(int activityId, long userId) {
        return DaoHelper.getAdvertisementActivityUserDataImpl().getAdvertisementUserData(activityId, userId);
    }

    public static void updateAdvertisementUserData(AdvertisementUserData advertisementUserData) {
        DaoHelper.getAdvertisementActivityUserDataImpl().update(advertisementUserData);
    }

    public static void addAdvertisementUserData(AdvertisementUserData advertisementUserData) {
        DaoHelper.getAdvertisementActivityUserDataImpl().add(advertisementUserData);
    }

}
